<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layuiAdmin 管理员 iframe 框</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="__PUBLIC__/layuiadmin/layui/css/layui.css" media="all">
</head>
<body>

  <div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
      <label class="layui-form-label">登录名</label>
      <div class="layui-input-inline">
        <input type="text" name="user_name" lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" value="{$item['user_name']}">
      </div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">密码</label>
		<div class="layui-input-inline">
		  <input type="text" name="password" placeholder="请输入密码，默认123456" autocomplete="off" class="layui-input">
		</div>
	  </div>
    <div class="layui-form-item">
      <label class="layui-form-label">手机</label>
      <div class="layui-input-inline">
        <input type="text" name="mobile" placeholder="请输入号码" autocomplete="off" class="layui-input" value="{$item['mobile']}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">邮箱</label>
      <div class="layui-input-inline">
        <input type="text" name="email" placeholder="请输入邮箱" autocomplete="off" class="layui-input" value="{$item['email']}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">角色</label>
      <div class="layui-input-inline">
		<foreach name="list" item="vo">
			<input type="checkbox" name="role_ids[]" value="{$vo['id']}" title="{$vo['role_name']}" lay-skin="primary" {:in_array($vo['id'],$item['role_ids'])?'checked':''}>
		</foreach>
      </div>
    </div>
    <div class="layui-form-item layui-hide">
		  <input type="hidden" name="id" value="{$item['id']}">
      <input type="button" lay-submit lay-filter="LAY-user-back-submit" id="LAY-user-back-submit" value="确认">
    </div>
  </div>

  <script src="__PUBLIC__/layuiadmin/layui/layui.js"></script>  
  <script>
  layui.config({
    base: '__PUBLIC__/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
    var $ = layui.$
    ,form = layui.form ;
  })
  </script>
</body>
</html>